/*
 * @Date: 2022-01-15 12:17:21
 * @LastEditors: LeeKing
 * @LastEditTime: 2022-01-15 12:19:08
 * @FilePath: \jikeyuan\src\utils\storage.js
 */
const TOKEN_KEY = 'jky-token'

const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token)
}

const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY)
}

const getToken = () => {
  return localStorage.getItem(TOKEN_KEY)
}

export { setToken, getToken, removeToken }
